• Image placeholder
  • 홈 페이지
  • 블로그 센터
  • 범주
Image placeholder

Programmers - 탐욕법(Greedy) : 조이스틱

[Programmers] 탐욕법(Greedy) : 조이스틱

📌 문제 ➕ 문제설명 조이스틱으로 알파벳 이름을 완성하세요. 맨 처음엔 A로만 이루어져 있습니다.ex) 완성해야 하는 이름이 세 글자면 AAA, 네 글자면 AAAA 만들고자 하는 이름 name이 매개변수로 주어질 때, 이름에 대해 조이스틱 조작 횟수의 최솟값을 return 하도록 solution 함수를 만드세요. ➕ 제한사항 name은 알파벳 대문자로만 이루어져 있습니다. ➕ 입출력 예 📌 ...

programmersProgrammers - 탐욕법(Greedy) : 조이스틱Programmers - 탐욕법(Greedy) : 조이스틱

© 2022 intrepidgeeks.com

Privacy Policy Contact US Sitemap
🍪 This website uses cookies to ensure you get the best experience on our website. Learn more